package com.google.android.gms.internal;

import android.graphics.Point;
import android.support.annotation.Nullable;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewTreeObserver;
import com.google.android.gms.ads.formats.NativeAd;
import com.google.android.gms.ads.formats.NativeAppInstallAd;
import com.google.android.gms.ads.formats.NativeContentAd;
import com.google.android.gms.ads.internal.zzbt;
import com.google.android.gms.common.internal.Hide;
import java.lang.ref.WeakReference;
import java.util.HashMap;
import java.util.Map;

@Hide
@zzabh
public final class zzql extends zzrc implements View.OnClickListener, View.OnTouchListener, ViewTreeObserver.OnGlobalLayoutListener, ViewTreeObserver.OnScrollChangedListener {
    static final String[] zzbzo = {NativeAppInstallAd.ASSET_MEDIA_VIDEO, NativeContentAd.ASSET_MEDIA_VIDEO};
    private final Object mLock = new Object();
    @Nullable
    private zzpv zzbyi;
    @Nullable
    private View zzbzt;
    private Point zzbzv = new Point();
    private Point zzbzw = new Point();
    @Nullable
    private WeakReference<zzgr> zzbzx = new WeakReference<>((Object) null);
    private final WeakReference<View> zzcaa;
    private final Map<String, WeakReference<View>> zzcab = new HashMap();
    private final Map<String, WeakReference<View>> zzcac = new HashMap();
    private final Map<String, WeakReference<View>> zzcad = new HashMap();

    public zzql(View view, HashMap<String, View> hashMap, HashMap<String, View> hashMap2) {
        zzbt.zzfg();
        zzaml.zza(view, (ViewTreeObserver.OnGlobalLayoutListener) this);
        zzbt.zzfg();
        zzaml.zza(view, (ViewTreeObserver.OnScrollChangedListener) this);
        view.setOnTouchListener(this);
        view.setOnClickListener(this);
        this.zzcaa = new WeakReference<>(view);
        zzi(hashMap);
        this.zzcad.putAll(this.zzcab);
        zzj(hashMap2);
        this.zzcad.putAll(this.zzcac);
        zzoi.initialize(view.getContext());
    }

    /* access modifiers changed from: private */
    /* JADX WARNING: Code restructure failed: missing block: B:20:0x003a, code lost:
        return;
     */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public final void zza(com.google.android.gms.internal.zzpz r7) {
        /*
            r6 = this;
            java.lang.Object r0 = r6.mLock
            monitor-enter(r0)
            java.lang.String[] r1 = zzbzo     // Catch:{ all -> 0x003b }
            int r2 = r1.length     // Catch:{ all -> 0x003b }
            r3 = 0
        L_0x0007:
            if (r3 >= r2) goto L_0x001f
            r4 = r1[r3]     // Catch:{ all -> 0x003b }
            java.util.Map<java.lang.String, java.lang.ref.WeakReference<android.view.View>> r5 = r6.zzcad     // Catch:{ all -> 0x003b }
            java.lang.Object r4 = r5.get(r4)     // Catch:{ all -> 0x003b }
            java.lang.ref.WeakReference r4 = (java.lang.ref.WeakReference) r4     // Catch:{ all -> 0x003b }
            if (r4 == 0) goto L_0x001c
            java.lang.Object r1 = r4.get()     // Catch:{ all -> 0x003b }
            android.view.View r1 = (android.view.View) r1     // Catch:{ all -> 0x003b }
            goto L_0x0020
        L_0x001c:
            int r3 = r3 + 1
            goto L_0x0007
        L_0x001f:
            r1 = 0
        L_0x0020:
            boolean r2 = r1 instanceof android.widget.FrameLayout     // Catch:{ all -> 0x003b }
            if (r2 != 0) goto L_0x0029
            r7.zzks()     // Catch:{ all -> 0x003b }
            monitor-exit(r0)     // Catch:{ all -> 0x003b }
            return
        L_0x0029:
            com.google.android.gms.internal.zzqn r2 = new com.google.android.gms.internal.zzqn     // Catch:{ all -> 0x003b }
            r2.<init>(r6, r1)     // Catch:{ all -> 0x003b }
            boolean r3 = r7 instanceof com.google.android.gms.internal.zzpu     // Catch:{ all -> 0x003b }
            if (r3 == 0) goto L_0x0036
            r7.zzb((android.view.View) r1, (com.google.android.gms.internal.zzpt) r2)     // Catch:{ all -> 0x003b }
            goto L_0x0039
        L_0x0036:
            r7.zza((android.view.View) r1, (com.google.android.gms.internal.zzpt) r2)     // Catch:{ all -> 0x003b }
        L_0x0039:
            monitor-exit(r0)     // Catch:{ all -> 0x003b }
            return
        L_0x003b:
            r7 = move-exception
            monitor-exit(r0)     // Catch:{ all -> 0x003b }
            throw r7
        */
        throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.zzql.zza(com.google.android.gms.internal.zzpz):void");
    }

    /* access modifiers changed from: private */
    public final boolean zza(String[] strArr) {
        for (String str : strArr) {
            if (this.zzcab.get(str) != null) {
                return true;
            }
        }
        for (String str2 : strArr) {
            if (this.zzcac.get(str2) != null) {
                return false;
            }
        }
        return false;
    }

    private final void zzi(Map<String, View> map) {
        for (Map.Entry next : map.entrySet()) {
            String str = (String) next.getKey();
            View view = (View) next.getValue();
            if (view != null) {
                this.zzcab.put(str, new WeakReference(view));
                if (!NativeAd.ASSET_ADCHOICES_CONTAINER_VIEW.equals(str)) {
                    view.setOnTouchListener(this);
                    view.setClickable(true);
                    view.setOnClickListener(this);
                }
            }
        }
    }

    private final void zzj(Map<String, View> map) {
        for (Map.Entry next : map.entrySet()) {
            View view = (View) next.getValue();
            if (view != null) {
                this.zzcac.put((String) next.getKey(), new WeakReference(view));
                view.setOnTouchListener(this);
            }
        }
    }

    private final void zzk(@Nullable View view) {
        synchronized (this.mLock) {
            if (this.zzbyi != null) {
                zzpv zzkp = this.zzbyi instanceof zzpu ? ((zzpu) this.zzbyi).zzkp() : this.zzbyi;
                if (zzkp != null) {
                    zzkp.zzk(view);
                }
            }
        }
    }

    private final int zzt(int i) {
        int zzb;
        synchronized (this.mLock) {
            zzlc.zzij();
            zzb = zzako.zzb(this.zzbyi.getContext(), i);
        }
        return zzb;
    }

    /* JADX WARNING: Code restructure failed: missing block: B:24:0x008f, code lost:
        return;
     */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public final void onClick(android.view.View r9) {
        /*
            r8 = this;
            java.lang.Object r0 = r8.mLock
            monitor-enter(r0)
            com.google.android.gms.internal.zzpv r1 = r8.zzbyi     // Catch:{ all -> 0x0090 }
            if (r1 != 0) goto L_0x0009
            monitor-exit(r0)     // Catch:{ all -> 0x0090 }
            return
        L_0x0009:
            java.lang.ref.WeakReference<android.view.View> r1 = r8.zzcaa     // Catch:{ all -> 0x0090 }
            java.lang.Object r1 = r1.get()     // Catch:{ all -> 0x0090 }
            r7 = r1
            android.view.View r7 = (android.view.View) r7     // Catch:{ all -> 0x0090 }
            if (r7 != 0) goto L_0x0016
            monitor-exit(r0)     // Catch:{ all -> 0x0090 }
            return
        L_0x0016:
            android.os.Bundle r5 = new android.os.Bundle     // Catch:{ all -> 0x0090 }
            r5.<init>()     // Catch:{ all -> 0x0090 }
            java.lang.String r1 = "x"
            android.graphics.Point r2 = r8.zzbzv     // Catch:{ all -> 0x0090 }
            int r2 = r2.x     // Catch:{ all -> 0x0090 }
            int r2 = r8.zzt(r2)     // Catch:{ all -> 0x0090 }
            float r2 = (float) r2     // Catch:{ all -> 0x0090 }
            r5.putFloat(r1, r2)     // Catch:{ all -> 0x0090 }
            java.lang.String r1 = "y"
            android.graphics.Point r2 = r8.zzbzv     // Catch:{ all -> 0x0090 }
            int r2 = r2.y     // Catch:{ all -> 0x0090 }
            int r2 = r8.zzt(r2)     // Catch:{ all -> 0x0090 }
            float r2 = (float) r2     // Catch:{ all -> 0x0090 }
            r5.putFloat(r1, r2)     // Catch:{ all -> 0x0090 }
            java.lang.String r1 = "start_x"
            android.graphics.Point r2 = r8.zzbzw     // Catch:{ all -> 0x0090 }
            int r2 = r2.x     // Catch:{ all -> 0x0090 }
            int r2 = r8.zzt(r2)     // Catch:{ all -> 0x0090 }
            float r2 = (float) r2     // Catch:{ all -> 0x0090 }
            r5.putFloat(r1, r2)     // Catch:{ all -> 0x0090 }
            java.lang.String r1 = "start_y"
            android.graphics.Point r2 = r8.zzbzw     // Catch:{ all -> 0x0090 }
            int r2 = r2.y     // Catch:{ all -> 0x0090 }
            int r2 = r8.zzt(r2)     // Catch:{ all -> 0x0090 }
            float r2 = (float) r2     // Catch:{ all -> 0x0090 }
            r5.putFloat(r1, r2)     // Catch:{ all -> 0x0090 }
            android.view.View r1 = r8.zzbzt     // Catch:{ all -> 0x0090 }
            if (r1 == 0) goto L_0x0087
            android.view.View r1 = r8.zzbzt     // Catch:{ all -> 0x0090 }
            boolean r1 = r1.equals(r9)     // Catch:{ all -> 0x0090 }
            if (r1 == 0) goto L_0x0087
            com.google.android.gms.internal.zzpv r1 = r8.zzbyi     // Catch:{ all -> 0x0090 }
            boolean r1 = r1 instanceof com.google.android.gms.internal.zzpu     // Catch:{ all -> 0x0090 }
            if (r1 == 0) goto L_0x0080
            com.google.android.gms.internal.zzpv r1 = r8.zzbyi     // Catch:{ all -> 0x0090 }
            com.google.android.gms.internal.zzpu r1 = (com.google.android.gms.internal.zzpu) r1     // Catch:{ all -> 0x0090 }
            com.google.android.gms.internal.zzpv r1 = r1.zzkp()     // Catch:{ all -> 0x0090 }
            if (r1 == 0) goto L_0x008e
            com.google.android.gms.internal.zzpv r1 = r8.zzbyi     // Catch:{ all -> 0x0090 }
            com.google.android.gms.internal.zzpu r1 = (com.google.android.gms.internal.zzpu) r1     // Catch:{ all -> 0x0090 }
            com.google.android.gms.internal.zzpv r2 = r1.zzkp()     // Catch:{ all -> 0x0090 }
            java.lang.String r4 = "1007"
            java.util.Map<java.lang.String, java.lang.ref.WeakReference<android.view.View>> r6 = r8.zzcad     // Catch:{ all -> 0x0090 }
        L_0x007b:
            r3 = r9
            r2.zza(r3, r4, r5, r6, r7)     // Catch:{ all -> 0x0090 }
            goto L_0x008e
        L_0x0080:
            com.google.android.gms.internal.zzpv r2 = r8.zzbyi     // Catch:{ all -> 0x0090 }
            java.lang.String r4 = "1007"
            java.util.Map<java.lang.String, java.lang.ref.WeakReference<android.view.View>> r6 = r8.zzcad     // Catch:{ all -> 0x0090 }
            goto L_0x007b
        L_0x0087:
            com.google.android.gms.internal.zzpv r1 = r8.zzbyi     // Catch:{ all -> 0x0090 }
            java.util.Map<java.lang.String, java.lang.ref.WeakReference<android.view.View>> r2 = r8.zzcad     // Catch:{ all -> 0x0090 }
            r1.zza(r9, r2, r5, r7)     // Catch:{ all -> 0x0090 }
        L_0x008e:
            monitor-exit(r0)     // Catch:{ all -> 0x0090 }
            return
        L_0x0090:
            r9 = move-exception
            monitor-exit(r0)     // Catch:{ all -> 0x0090 }
            throw r9
        */
        throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.zzql.onClick(android.view.View):void");
    }

    public final void onGlobalLayout() {
        View view;
        synchronized (this.mLock) {
            if (!(this.zzbyi == null || (view = (View) this.zzcaa.get()) == null)) {
                this.zzbyi.zzc(view, this.zzcad);
            }
        }
    }

    public final void onScrollChanged() {
        View view;
        synchronized (this.mLock) {
            if (!(this.zzbyi == null || (view = (View) this.zzcaa.get()) == null)) {
                this.zzbyi.zzc(view, this.zzcad);
            }
        }
    }

    public final boolean onTouch(View view, MotionEvent motionEvent) {
        synchronized (this.mLock) {
            if (this.zzbyi == null) {
                return false;
            }
            View view2 = (View) this.zzcaa.get();
            if (view2 == null) {
                return false;
            }
            int[] iArr = new int[2];
            view2.getLocationOnScreen(iArr);
            Point point = new Point((int) (motionEvent.getRawX() - ((float) iArr[0])), (int) (motionEvent.getRawY() - ((float) iArr[1])));
            this.zzbzv = point;
            if (motionEvent.getAction() == 0) {
                this.zzbzw = point;
            }
            MotionEvent obtain = MotionEvent.obtain(motionEvent);
            obtain.setLocation((float) point.x, (float) point.y);
            this.zzbyi.zzd(obtain);
            obtain.recycle();
            return false;
        }
    }

    public final void unregisterNativeAd() {
        synchronized (this.mLock) {
            this.zzbzt = null;
            this.zzbyi = null;
            this.zzbzv = null;
            this.zzbzw = null;
        }
    }

    /* JADX WARNING: type inference failed for: r2v18, types: [android.view.View] */
    /* JADX WARNING: Multi-variable type inference failed */
    /* JADX WARNING: Unknown variable types count: 1 */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public final void zza(com.google.android.gms.dynamic.IObjectWrapper r9) {
        /*
            r8 = this;
            java.lang.Object r0 = r8.mLock
            monitor-enter(r0)
            r1 = 0
            r8.zzk(r1)     // Catch:{ all -> 0x0180 }
            java.lang.Object r9 = com.google.android.gms.dynamic.zzn.zzy(r9)     // Catch:{ all -> 0x0180 }
            boolean r2 = r9 instanceof com.google.android.gms.internal.zzpz     // Catch:{ all -> 0x0180 }
            if (r2 != 0) goto L_0x0016
            java.lang.String r9 = "Not an instance of native engine. This is most likely a transient error"
            com.google.android.gms.internal.zzahw.zzcz(r9)     // Catch:{ all -> 0x0180 }
            monitor-exit(r0)     // Catch:{ all -> 0x0180 }
            return
        L_0x0016:
            com.google.android.gms.internal.zzpz r9 = (com.google.android.gms.internal.zzpz) r9     // Catch:{ all -> 0x0180 }
            boolean r2 = r9.zzkn()     // Catch:{ all -> 0x0180 }
            if (r2 != 0) goto L_0x0025
            java.lang.String r9 = "Your account must be enabled to use this feature. Talk to your account manager to request this feature for your account."
            com.google.android.gms.internal.zzahw.e(r9)     // Catch:{ all -> 0x0180 }
            monitor-exit(r0)     // Catch:{ all -> 0x0180 }
            return
        L_0x0025:
            java.lang.ref.WeakReference<android.view.View> r2 = r8.zzcaa     // Catch:{ all -> 0x0180 }
            java.lang.Object r2 = r2.get()     // Catch:{ all -> 0x0180 }
            r7 = r2
            android.view.View r7 = (android.view.View) r7     // Catch:{ all -> 0x0180 }
            com.google.android.gms.internal.zzpv r2 = r8.zzbyi     // Catch:{ all -> 0x0180 }
            if (r2 == 0) goto L_0x004d
            if (r7 == 0) goto L_0x004d
            com.google.android.gms.internal.zzny<java.lang.Boolean> r2 = com.google.android.gms.internal.zzoi.zzbsn     // Catch:{ all -> 0x0180 }
            com.google.android.gms.internal.zzog r3 = com.google.android.gms.internal.zzlc.zzio()     // Catch:{ all -> 0x0180 }
            java.lang.Object r2 = r3.zzd(r2)     // Catch:{ all -> 0x0180 }
            java.lang.Boolean r2 = (java.lang.Boolean) r2     // Catch:{ all -> 0x0180 }
            boolean r2 = r2.booleanValue()     // Catch:{ all -> 0x0180 }
            if (r2 == 0) goto L_0x004d
            com.google.android.gms.internal.zzpv r2 = r8.zzbyi     // Catch:{ all -> 0x0180 }
            java.util.Map<java.lang.String, java.lang.ref.WeakReference<android.view.View>> r3 = r8.zzcad     // Catch:{ all -> 0x0180 }
            r2.zzb(r7, r3)     // Catch:{ all -> 0x0180 }
        L_0x004d:
            java.lang.Object r2 = r8.mLock     // Catch:{ all -> 0x0180 }
            monitor-enter(r2)     // Catch:{ all -> 0x0180 }
            com.google.android.gms.internal.zzpv r3 = r8.zzbyi     // Catch:{ all -> 0x017d }
            boolean r3 = r3 instanceof com.google.android.gms.internal.zzpz     // Catch:{ all -> 0x017d }
            if (r3 != 0) goto L_0x0058
        L_0x0056:
            monitor-exit(r2)     // Catch:{ all -> 0x017d }
            goto L_0x0096
        L_0x0058:
            com.google.android.gms.internal.zzpv r3 = r8.zzbyi     // Catch:{ all -> 0x017d }
            com.google.android.gms.internal.zzpz r3 = (com.google.android.gms.internal.zzpz) r3     // Catch:{ all -> 0x017d }
            java.lang.ref.WeakReference<android.view.View> r4 = r8.zzcaa     // Catch:{ all -> 0x017d }
            java.lang.Object r4 = r4.get()     // Catch:{ all -> 0x017d }
            android.view.View r4 = (android.view.View) r4     // Catch:{ all -> 0x017d }
            if (r3 == 0) goto L_0x0056
            android.content.Context r5 = r3.getContext()     // Catch:{ all -> 0x017d }
            if (r5 == 0) goto L_0x0056
            if (r4 == 0) goto L_0x0056
            com.google.android.gms.internal.zzagu r5 = com.google.android.gms.ads.internal.zzbt.zzfh()     // Catch:{ all -> 0x017d }
            android.content.Context r4 = r4.getContext()     // Catch:{ all -> 0x017d }
            boolean r4 = r5.zzs(r4)     // Catch:{ all -> 0x017d }
            if (r4 == 0) goto L_0x0056
            com.google.android.gms.internal.zzagt r3 = r3.zzku()     // Catch:{ all -> 0x017d }
            if (r3 == 0) goto L_0x0086
            r4 = 0
            r3.zzw(r4)     // Catch:{ all -> 0x017d }
        L_0x0086:
            java.lang.ref.WeakReference<com.google.android.gms.internal.zzgr> r4 = r8.zzbzx     // Catch:{ all -> 0x017d }
            java.lang.Object r4 = r4.get()     // Catch:{ all -> 0x017d }
            com.google.android.gms.internal.zzgr r4 = (com.google.android.gms.internal.zzgr) r4     // Catch:{ all -> 0x017d }
            if (r4 == 0) goto L_0x0056
            if (r3 == 0) goto L_0x0056
            r4.zzb(r3)     // Catch:{ all -> 0x017d }
            goto L_0x0056
        L_0x0096:
            com.google.android.gms.internal.zzpv r2 = r8.zzbyi     // Catch:{ all -> 0x0180 }
            boolean r2 = r2 instanceof com.google.android.gms.internal.zzpu     // Catch:{ all -> 0x0180 }
            if (r2 == 0) goto L_0x00ae
            com.google.android.gms.internal.zzpv r2 = r8.zzbyi     // Catch:{ all -> 0x0180 }
            com.google.android.gms.internal.zzpu r2 = (com.google.android.gms.internal.zzpu) r2     // Catch:{ all -> 0x0180 }
            boolean r2 = r2.zzko()     // Catch:{ all -> 0x0180 }
            if (r2 == 0) goto L_0x00ae
            com.google.android.gms.internal.zzpv r2 = r8.zzbyi     // Catch:{ all -> 0x0180 }
            com.google.android.gms.internal.zzpu r2 = (com.google.android.gms.internal.zzpu) r2     // Catch:{ all -> 0x0180 }
            r2.zzc(r9)     // Catch:{ all -> 0x0180 }
            goto L_0x00ba
        L_0x00ae:
            r8.zzbyi = r9     // Catch:{ all -> 0x0180 }
            boolean r2 = r9 instanceof com.google.android.gms.internal.zzpu     // Catch:{ all -> 0x0180 }
            if (r2 == 0) goto L_0x00ba
            r2 = r9
            com.google.android.gms.internal.zzpu r2 = (com.google.android.gms.internal.zzpu) r2     // Catch:{ all -> 0x0180 }
            r2.zzc(r1)     // Catch:{ all -> 0x0180 }
        L_0x00ba:
            java.util.Map<java.lang.String, java.lang.ref.WeakReference<android.view.View>> r2 = r8.zzcad     // Catch:{ all -> 0x0180 }
            java.lang.String r3 = "1098"
            java.lang.Object r2 = r2.get(r3)     // Catch:{ all -> 0x0180 }
            java.lang.ref.WeakReference r2 = (java.lang.ref.WeakReference) r2     // Catch:{ all -> 0x0180 }
            if (r2 != 0) goto L_0x00cc
            java.lang.String r1 = "Ad choices asset view is not provided."
            com.google.android.gms.internal.zzahw.zzcz(r1)     // Catch:{ all -> 0x0180 }
            goto L_0x010a
        L_0x00cc:
            java.lang.Object r2 = r2.get()     // Catch:{ all -> 0x0180 }
            android.view.View r2 = (android.view.View) r2     // Catch:{ all -> 0x0180 }
            boolean r3 = r2 instanceof android.view.ViewGroup     // Catch:{ all -> 0x0180 }
            if (r3 == 0) goto L_0x00d9
            r1 = r2
            android.view.ViewGroup r1 = (android.view.ViewGroup) r1     // Catch:{ all -> 0x0180 }
        L_0x00d9:
            if (r1 == 0) goto L_0x010a
            r2 = 1
            android.view.View r2 = r9.zza((android.view.View.OnClickListener) r8, (boolean) r2)     // Catch:{ all -> 0x0180 }
            r8.zzbzt = r2     // Catch:{ all -> 0x0180 }
            android.view.View r2 = r8.zzbzt     // Catch:{ all -> 0x0180 }
            if (r2 == 0) goto L_0x010a
            java.util.Map<java.lang.String, java.lang.ref.WeakReference<android.view.View>> r2 = r8.zzcad     // Catch:{ all -> 0x0180 }
            java.lang.String r3 = "1007"
            java.lang.ref.WeakReference r4 = new java.lang.ref.WeakReference     // Catch:{ all -> 0x0180 }
            android.view.View r5 = r8.zzbzt     // Catch:{ all -> 0x0180 }
            r4.<init>(r5)     // Catch:{ all -> 0x0180 }
            r2.put(r3, r4)     // Catch:{ all -> 0x0180 }
            java.util.Map<java.lang.String, java.lang.ref.WeakReference<android.view.View>> r2 = r8.zzcab     // Catch:{ all -> 0x0180 }
            java.lang.String r3 = "1007"
            java.lang.ref.WeakReference r4 = new java.lang.ref.WeakReference     // Catch:{ all -> 0x0180 }
            android.view.View r5 = r8.zzbzt     // Catch:{ all -> 0x0180 }
            r4.<init>(r5)     // Catch:{ all -> 0x0180 }
            r2.put(r3, r4)     // Catch:{ all -> 0x0180 }
            r1.removeAllViews()     // Catch:{ all -> 0x0180 }
            android.view.View r2 = r8.zzbzt     // Catch:{ all -> 0x0180 }
            r1.addView(r2)     // Catch:{ all -> 0x0180 }
        L_0x010a:
            java.util.Map<java.lang.String, java.lang.ref.WeakReference<android.view.View>> r3 = r8.zzcab     // Catch:{ all -> 0x0180 }
            java.util.Map<java.lang.String, java.lang.ref.WeakReference<android.view.View>> r4 = r8.zzcac     // Catch:{ all -> 0x0180 }
            r1 = r9
            r2 = r7
            r5 = r8
            r6 = r8
            r1.zza((android.view.View) r2, (java.util.Map<java.lang.String, java.lang.ref.WeakReference<android.view.View>>) r3, (java.util.Map<java.lang.String, java.lang.ref.WeakReference<android.view.View>>) r4, (android.view.View.OnTouchListener) r5, (android.view.View.OnClickListener) r6)     // Catch:{ all -> 0x0180 }
            android.os.Handler r1 = com.google.android.gms.internal.zzaij.zzdfn     // Catch:{ all -> 0x0180 }
            com.google.android.gms.internal.zzqm r2 = new com.google.android.gms.internal.zzqm     // Catch:{ all -> 0x0180 }
            r2.<init>(r8, r9)     // Catch:{ all -> 0x0180 }
            r1.post(r2)     // Catch:{ all -> 0x0180 }
            r8.zzk(r7)     // Catch:{ all -> 0x0180 }
            com.google.android.gms.internal.zzpv r9 = r8.zzbyi     // Catch:{ all -> 0x0180 }
            r9.zzi(r7)     // Catch:{ all -> 0x0180 }
            java.lang.Object r9 = r8.mLock     // Catch:{ all -> 0x0180 }
            monitor-enter(r9)     // Catch:{ all -> 0x0180 }
            com.google.android.gms.internal.zzpv r1 = r8.zzbyi     // Catch:{ all -> 0x017a }
            boolean r1 = r1 instanceof com.google.android.gms.internal.zzpz     // Catch:{ all -> 0x017a }
            if (r1 != 0) goto L_0x0132
        L_0x0130:
            monitor-exit(r9)     // Catch:{ all -> 0x017a }
            goto L_0x0178
        L_0x0132:
            com.google.android.gms.internal.zzpv r1 = r8.zzbyi     // Catch:{ all -> 0x017a }
            com.google.android.gms.internal.zzpz r1 = (com.google.android.gms.internal.zzpz) r1     // Catch:{ all -> 0x017a }
            java.lang.ref.WeakReference<android.view.View> r2 = r8.zzcaa     // Catch:{ all -> 0x017a }
            java.lang.Object r2 = r2.get()     // Catch:{ all -> 0x017a }
            android.view.View r2 = (android.view.View) r2     // Catch:{ all -> 0x017a }
            if (r1 == 0) goto L_0x0130
            android.content.Context r3 = r1.getContext()     // Catch:{ all -> 0x017a }
            if (r3 == 0) goto L_0x0130
            if (r2 == 0) goto L_0x0130
            com.google.android.gms.internal.zzagu r3 = com.google.android.gms.ads.internal.zzbt.zzfh()     // Catch:{ all -> 0x017a }
            android.content.Context r4 = r2.getContext()     // Catch:{ all -> 0x017a }
            boolean r3 = r3.zzs(r4)     // Catch:{ all -> 0x017a }
            if (r3 == 0) goto L_0x0130
            java.lang.ref.WeakReference<com.google.android.gms.internal.zzgr> r3 = r8.zzbzx     // Catch:{ all -> 0x017a }
            java.lang.Object r3 = r3.get()     // Catch:{ all -> 0x017a }
            com.google.android.gms.internal.zzgr r3 = (com.google.android.gms.internal.zzgr) r3     // Catch:{ all -> 0x017a }
            if (r3 != 0) goto L_0x0170
            com.google.android.gms.internal.zzgr r3 = new com.google.android.gms.internal.zzgr     // Catch:{ all -> 0x017a }
            android.content.Context r4 = r2.getContext()     // Catch:{ all -> 0x017a }
            r3.<init>(r4, r2)     // Catch:{ all -> 0x017a }
            java.lang.ref.WeakReference r2 = new java.lang.ref.WeakReference     // Catch:{ all -> 0x017a }
            r2.<init>(r3)     // Catch:{ all -> 0x017a }
            r8.zzbzx = r2     // Catch:{ all -> 0x017a }
        L_0x0170:
            com.google.android.gms.internal.zzagt r1 = r1.zzku()     // Catch:{ all -> 0x017a }
            r3.zza((com.google.android.gms.internal.zzgv) r1)     // Catch:{ all -> 0x017a }
            goto L_0x0130
        L_0x0178:
            monitor-exit(r0)     // Catch:{ all -> 0x0180 }
            return
        L_0x017a:
            r1 = move-exception
            monitor-exit(r9)     // Catch:{ all -> 0x017a }
            throw r1     // Catch:{ all -> 0x0180 }
        L_0x017d:
            r9 = move-exception
            monitor-exit(r2)     // Catch:{ all -> 0x017d }
            throw r9     // Catch:{ all -> 0x0180 }
        L_0x0180:
            r9 = move-exception
            monitor-exit(r0)     // Catch:{ all -> 0x0180 }
            throw r9
        */
        throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.zzql.zza(com.google.android.gms.dynamic.IObjectWrapper):void");
    }
}
